#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;

const double EPS = 1E-6;

int main(int argc, char *argv[]) {
    setName("checker for 1772C");
    registerTestlibCmd(argc, argv);

    int T = inf.readInt();
    for(int cases = 1; cases <= T; cases ++) {
        int k = inf.readInt(),
            n = inf.readInt();
        int left = n - k, ans = 0;
        for(int i = 1; i <= left; i ++) {
            left -= i;
            ans ++;
        }
        set<int> s;
        for(int i = 1, lst = 0, x; i <= k; i ++) {
            x = ouf.readInt();
            if(x < 1 || x > n) quitf(_wa, "Integer out of range [1, %d] on case %d.", n, cases);
            if(x <= lst) quitf(_wa, "Array does not ascend on case %d.", cases);
            if(i > 1) s.insert(x - lst);
            lst = x;
        }
        if(s.size() != ans) {
            quitf(_wa, "Not the best answer on case %d.", cases);
        }
    }
    quitf(_ok, "ok %d cases.", T);
}
